<template>
	<view class="page">
		<public-module></public-module>
		<f-navbar  fontColor="#fff"  :scrollTop="scrollTop" :isShowTransparentTitle="false" navbarType='5'></f-navbar>
		
		<view class="intro">		
			<view class="title">{{item.title}}</view>		
			<u-parse :content="item.content"></u-parse>		
		</view>
		
	</view>
</template>

<script>
	import base from '@/config/baseUrl';
	import fNavbar from '@/components/module/f-navbar/f-navbar';
	import {
		itemdetails
	} from '@/config/api.js';
	// #ifdef MP-WEIXIN
	import {
		title
	} from 'process';
	// #endif
	export default {
		components:{
		    fNavbar
		},
		data() {
			return {
				id: "", //项目id
				item: null
			}
		},
		onLoad(option) {
			if (option.id) {
				this.id = option.id;
				this.getItem();
			}
		},

		methods: {
			//项目列表
			getItem() {
				let httpData = {
					id: this.id
				}
				itemdetails({
					params: httpData
				}).then((res) => {
					if (res && res.data && res.data.article.length != 0) {
						this.item = res.data.article;
					}
				}).catch((err) => {
					console.log(err, 'catch')
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background: #ffffff;		
	}

	.page {
		padding: 150rpx 30rpx 100rpx;
		// 介绍
		.intro {
			line-height: 2;
			color: #333333;
			text-indent: 2em;
			.title{
				font-size: 45rpx;
				font-weight: bold;
				line-height: 2;
				color: #333333;
				text-align: center;
			}
		}
	}
</style>